/* -------------------------- Full Modal -------------------------- */
.rui.search-modal {
  width: 100%;
  height: 100%;
  background-color: @body-bg;
  position: absolute;
  top: 0;
  z-index: @zindex-modal;
  padding: 0;
  margin: 0;
}

/* -------------------------- Close Modal Button -------------------------- */
.rui.search-modal-close {
  position: absolute;
  top: 10px;
  .right(10px);
  z-index: 1051; //calc(@zindex-modal + 1); // calc() doesn't work for z-index in FireFox
}

/* -------------------------- Modal Header -------------------------- */
.rui.search-modal-header {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 20px;
  background: @white;
  position: fixed;
  top: 0;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  transition: background-color 200ms linear;
  z-index: 200;

  .active-search {
    background-color: @white;
  }
}

/* ---------------- Input ---------------- */
.rui.search-modal-input {
  width: 96%;
  position: relative;
  border-bottom: 1px solid @black40;

  .search-icon {
    font-size: 25px;
    position: absolute;
    .left(10px);
    top: 40px;
    color: @black40;
  }

  .search-clear {
    font-size: 12px;
    position: absolute;
    .right(10px);
    top: 42px;
    color: @black60;
    cursor: pointer;
    background: @black10;
    padding-right: 15px;
    padding-left: 15px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 20px;
    border-style: none;
    transition: background-color 200ms linear;

    &:hover {
      background: @black25;
    }
  }
}

.rui.search-modal-input label {
  font-weight: normal;
  text-transform: uppercase;
  color: @black40;
}
.rui.search-modal-input input {
  width: 100%;
  height: 54px;
  .padding-left(50px);
  border: none;
  outline: none;
  font-size: 25px;
  background: transparent;
}

.search-input{
  width: 100%;
  height: 54px;
  .padding-left(50px);
  border: none;
  outline: none;
  font-size: 25px;
  background: transparent;
}


/* ---------------- Tags ---------------- */
.rui.search-modal-tags-container {
  width: 96%;
  padding-top: 10px;
  padding-right: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
  background-color: @black05;
  overflow-x: scroll;
}
.rui.suggested-tags {
  font-size: 12px;
  color: @black40;
}
.rui.search-tags {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.rui.search-tag {
  width: auto;
  height: auto;
  padding-top: 6px;
  padding-right: 12px;
  padding-bottom: 6px;
  padding-left: 12px;
  margin-right: 5px;
  border-radius: 4px;
  background-color: @black40;
  color: @brand-light-color;
  cursor: pointer;
  transition: background-color 200ms linear, padding-right 200ms ease-out;

  &:hover {
    background-color: darken(@brand-light-color, 20%);
  }
}
.rui.search-tag.active-tag {
  color: @btn-active-color;
  background-color: @btn-active-bg;
  padding-right: 35px;
  position: relative;
  order: -1;

  &:hover {
    background-color: fade(@btn-active-bg, 60%);
  }
}
.rui.search-tag.active-tag:after {
  content: "\f00d";
  font-family: "FontAwesome", "FontAwesomeFallback";
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  position: absolute;
  right: 12px;
}


/* -------------------------- Modal Container -------------------------- */
.rui.search-modal-results-container {
  width: 100%;
  height: auto;
  overflow-y: scroll;

  .data-table {
    margin-top: 20px;
  }

  @media @mobile {
    width: 100%;
  }
}

.search-modal {
  .product-grid-item {
    .overlay-description {
      height: 0;
      opacity: 0.0;
      transition: opacity 100ms linear;
      padding-left: 20px;
      padding-right: 10px;
      padding-bottom: 10px;
    }

    .item-content {
      background-color: none;
      transition: box-shadow 200ms linear;
    }

    &:hover {
      background: #fff;
      z-index: 1;
      height: 0;

      .item-content {
        box-shadow: 0 0 0 10px white, 0 2px 8px 9px rgba(0, 0, 0, 0.2);
        background-color: @white;
        margin-bottom: 50px;
      }

      .overlay-description {
        height: auto;
        opacity: 1.0;
        background: #fff;
        transition: box-shadow 400ms linear;
      }
    }
  }
}
